<!DOCTYPE html>
<html>
<head lang="en">
  <meta charset="UTF-8">
  <title>首页</title>
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
  <meta name="format-detection" content="telephone=no">
  <meta name="renderer" content="webkit">
  <meta http-equiv="Cache-Control" content="no-siteapp" />
  <link rel="stylesheet" href="/ui/assets/css/amazeui.min.css"/>
  <style>
    .header {
    	height: 64px;
    	text-align: center;
    }
    .header h1 {
      font-size: 200%;
      color: #333;
      font-size: 22px;
      margin-top: 10px;
    }
  </style>
</head>
<body>
<div class="header">
	<div class="am-u-12">
		<h1>日新自强，知行合一</h1>
    </div>
</div>
<div id="userInfo">

</div>
<div>
	<ul class="am-list am-list-border">
	  <li><a onclick="showAppList()"><i class="am-icon-star am-icon-fw"></i>推荐应用</a></li>
	  <li><a onclick="doCheckUpdate()"><i class="am-icon-refresh am-icon-fw"></i>检测更新</a></li>
	  <li><a href="/logout.html" ><i class="am-icon-power-off am-icon-fw"></i>退出</a></li>
	</ul>
</div>

<div class="am-g">
	<div class="am-u-12">
		<div class="am-alert am-alert-warning" data-am-alert>
			提示，本软件使用模拟网页版技术，访问速度与稳定性取决于教务系统。
		</div>
	</div>
</div>

<script type="text/art-template" id="user-art-template">
	<ul class="am-list am-list-border">
	  <li><a ><i class="am-icon-user am-icon-fw"></i>个人信息</a></li>
	  <li><a >&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;姓名：{{user.userName}}</a></li>
	  <li><a >&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;学号：{{user.userNo}}</a></li>
	  <li><a >&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;专业：{{user.majorName}}</a></li>
	  <li><a >&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;班级：{{user.classNo}}</a></li>
	</ul>
</script>
<div data-am-widget="navbar" class="am-navbar am-cf am-navbar-default "  id="navbar">
    <ul id="menus" class="am-navbar-nav am-cf am-avg-sm-3">
    
        <li>
            <a href="/home.html">
            	<span class="am-icon-home"></span>
                <span class="am-navbar-label">首页</span>
            </a>
        </li>
        <li>
            <a href="/grade.html">
            	<span class="am-icon-book"></span>
                <span class="am-navbar-label">成绩</span>
            </a>
        </li>
        <li>
            <a href="/course.html">
            	<span class="am-icon-list"></span>
                <span class="am-navbar-label">课表</span>
            </a>
        </li>
    </ul>
</div>
</body>
<script src="/ui/assets/js/jquery.min.js"></script>
<script src="/ui/assets/js/amazeui.min.js"></script>
<script src="/template.js"></script>
<script type="text/javascript">
	var data = {};
    data['user'] =  %%userInfo%%;
    document.getElementById('userInfo').innerHTML = template('user-art-template', data);
    
	function showAppList(){
		
		$.ajax({
			url:'doShowAppList',
			dataType: 'json',
			data: {},
			success: function(){
				
			},
			error : function(){
				
			}
			
		});	
	}
	
	function doCheckUpdate(){
		
		$.ajax({
			url:'doCheckUpdate',
			dataType: 'json',
			data: {},
			success: function(){
				
			},
			error : function(){
				
			}
			
		});	
	}
	
</script>


</html>